



	
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" >
<head lang="en">
    <meta charset="UTF-8">
    <title>超市订单管理系统</title>
    <link type="text/css" rel="stylesheet" href="css/style.css" />
    <link type="text/css" rel="stylesheet" href="css/public.css" />
</head>
<body>
<!--头部-->
    <header class="publicHeader">
        <h1>超市订单管理系统</h1>
        <div class="publicHeaderR">
            <p><span>下午好！</span>
                <span th:text="${session.userName}" style="color: #fff21b">系统管理员</span> , 欢迎你！</p >
            <a th:href="@{http://localhost:8080/logout}">退出</a>
        </div>
    </header>
<!--时间-->
    <section class="publicTime">
        <span id="time">2015年1月1日 11:11  星期一</span>
        <a href="#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>
    </section>
 <!--主体内容-->
 <section class="publicMian ">
     <div class="left">
         <h2 class="leftH2"><span class="span1"></span>功能列表 <span></span></h2>
         <nav>
             <ul class="list">
                 <li><a th:href="@{'http://localhost:8081/info?userName='+${session.userName}}">订单管理</a></li>
                 <li><a th:href="@{'http://localhost:8082/info?userName='+${session.userName}}">供应商管理</a></li>
                 <li><a th:href="@{'http://localhost:8083/info?userName='+${session.userName}}">用户管理</a></li>
                 <li><a th:href="@{'http://localhost:8080/pwdmodify?userName='+${session.userName}}">密码修改</a></li>
                 <li><a th:href="@{http://localhost:8080/logout}">退出系统</a></li>
             </ul>
         </nav>
     </div>
     <input type="hidden" id="path" name="path" value=""/>
    <!-- <input type="hidden" id="referer" name="referer" value="http://localhost:8080jsp/user.do?method=query"/>
-->
     <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>用户管理页面 >> 用户修改页面</span>
        </div>
        <div class="providerAdd">
        <form id="userForm" name="userForm" method="post" action="update">
			<input type="hidden" name="method" value="modifyexe">
			<input type="hidden" name="uid" value="13"/>
			 <div>
                    <label for="userName">用户名称：</label>
                    <input type="text" name="username" id="userName" th:value="${user.username}" required >

					<font color="red"></font>
             </div>
			 <div>
                    <label >用户性别：</label>
                    <select name="gender" id="gender" required>
							  <span th:if="${user.gender==1}">
							    <option value="2">男</option>
					    		<option value="1" selected="selected">女</option>
							</span>
                        <span th:if="${user.gender==2}">
							    <option value="2" selected="selected">男</option>
					    		<option value="1" >女</option>
							</span>
					 </select>
             </div>
			 <div>
                 <label for="birthday">出生日期：</label>
                    <input type="date" Class="Wdate" id="birthday" name="birthday" th:value="${user.birthday}"
					readonly="readonly" onclick="WdatePicker();" required>
                    <font color="red"></font>
              </div>
			
		       <div>
                    <label for="phone">用户电话：</label>
                    <input type="text" name="phone" id="phone" th:value="${user.phone}" required>
                    <font color="red"></font>
               </div>
                <div>
                    <label for="address">用户地址：</label>
                    <input type="text" name="address" id="address" th:value="${user.address}" required>
                </div>
				<div>
                    <label >用户角色：</label>
                    <!-- 列出所有的角色分类 -->
					<input type="hidden" value="3" id="rid" />
                        <select name="userrole" id="userRole" required>
                            <span th:if="${user.userrole==3}">
                                <option value="1" >系统管理员</option>
                            <option value="2">经理</option>
                            <option value="3" selected="selected">普通员工</option>
                            </span>
                            <span th:if="${user.userrole==2}">
                                <option value="1" >系统管理员</option>
                            <option value="2" selected="selected">经理</option>
                            <option value="3" >普通员工</option>
                            </span>
                            <span th:if="${user.userrole==1}">
                                <option value="1" selected="selected">系统管理员</option>
                            <option value="2">经理</option>
                            <option value="3" >普通员工</option>
                            </span>

                        </select>
                    </select>
        			<font color="red"></font>
                </div>
			 <div class="providerAddBtn">
                    <input type="button" name="save" id="save" value="保存"  />
                    <input type="button" id="back" name="back" value="返回" onclick="history.go(-1)"/>
                </div>
            </form>
        </div>
    </div>
</section>


<footer class="footer">
    版权归XXXX
</footer>
<script type="text/javascript" src="js/time.js"></script>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="calendar/WdatePicker.js"></script>
</body>
</html>
<script type="text/javascript" src="js/usermodify.js"></script>
